body { font-family: Arial, sans-serif; background: #f5f5f5; }
.container { max-width: 400px; margin: 60px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px #ccc; }
input, button { width: 100%; margin: 8px 0; padding: 8px; }
nav { background: #333; color: #fff; padding: 10px; }
nav a { color: #fff; margin-right: 10px; text-decoration: none; }
#msg { color: red; margin-top: 10px; }

/* 产品列表项样式 */
.product-item {
    border: 1px solid #eee;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
}
.product-item img { margin-right: 10px; }
.product-item button { margin-left: auto; }

/* 产品卡片样式 */
.product-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
.product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 新增图片展示样式 */
.product-images {
    display: flex;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}
.thumbnail:hover {
    transform: scale(1.1);
    border-color: #ddd;
}

.product-info { flex: 1; }
.price {
    color: #f56c6c;
    font-weight: bold;
    font-size: 1.2em;
}
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}
.status.selling {
    background: #e1f3d8;
    color: #67c23a;
}
.status.sold {
    background: #fde2e2;
    color: #f56c6c;
}
.product-actions { margin-top: 10px; }
